package com.github.prontera.persistence;

import java.util.HashMap;
import java.util.List;

import com.github.prontera.MyBatisRepository;
import com.github.prontera.domain.ClientInvitation;

/**
 * 用户邀请表Dao
 */
@MyBatisRepository
public interface ClientInvitationMapper extends CrudMapper<ClientInvitation>{

	List<ClientInvitation> findClient(ClientInvitation clientInvitation);
	
	long invitationCount(final ClientInvitation clientInvitation);
	
	
	long countBetweenDay(final ClientInvitation clientInvitation);
	/**
	 * 用户邀请表查询
	 * @param clientInvitation
	 * @return
	 */
	List<HashMap<String, Object>> queryList(ClientInvitation clientInvitation);

	/**
	 * 用户邀请表查询记录数
	 * @param clientRent
	 * @return
	 */
	Integer queryListCount(ClientInvitation clientInvitation);
	
	long invitationCountToday();

	List<ClientInvitation> findClient2(ClientInvitation clientInvitation);
	
}
